<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
		<title>代码片断编辑器 -- Powered by CentIMS {$core_version}</title>
		<link href="{'bootstrap/css/bootstrap.css'|shared}" rel="stylesheet"/>
		<link href="{'bootstrap/css/bootstrap-responsive.css'|shared}" rel="stylesheet"/>
		<link href="{'common.css'|shared}" rel="stylesheet"/>
		<link rel="stylesheet" href="{'ueditor/themes/default/ueditor.css'|shared}"/>
		<link href="../vfs/page.css" rel="stylesheet"/>
	</head>
	<body>
		<div class="workspace">
			{include file='core/views/vfs/vfs_navi.tpl'}
			{if $page_tip_info}			
		    <div id="page_info" class="alert {$alert_cls}">
		        <button class="close" data-dismiss="alert">×</button>
		        <div id="page_msg">{$page_tip_info}</div>
	      	</div>
	      	{/if}				
			<form id="fragment-form" method="POST" action="./?Ctlr=SaveFragment">
				<input type="hidden" name="fragment_id" id="fragment_id" value="{$fragment_id}"/>				
				<div id="pagestuff">
					<div id="side-info-column" class="sidebar">
						<div id="side-sortables">
							
							<div class="postbox">
								<div title="点击以切换" class="handlediv"><br/></div>
								<h3 class="hndle"><span>片断信息</span></h3>	
								<div class="inside">
									<div class="form-field">
										<label>片断标记</label>																		
							            <input class="w100 pull-left" id="name" name="name" type="text" value="{$name}"/>
							            <span class="txt-info info">模板中引用.</span>
							            <br class="clear"/>
									</div>
									<div class="form-field">
										<label>片断名</label>												  									
							            <input class="w220 mg-r5" id="title" name="title" value="{$title}" type="text"/>							            
									</div>
									<div class="form-field">
										<label>备注</label>												  									
							           	<textarea rows="5" class="w220" name="note" id="note">{$note}</textarea>
									</div>
									<p>										
										<button class="btn btn-info btn-publish" type="submit">保存</button>
										<a class="btn" href=".">取消</a>
										<br class="clear"/>
									</p>
								</div>
							</div>
						</div>				
					</div>
					
					<div id="page-body">
						<div class="post-body-form">	
							<script type="text/plain" id="myEditor">{$fragment}</script>
						</div>
					</div>
					<br class="clear"/>
				</div>
	      	</form>
      	</div>
      	
		<script type="text/javascript" src="{'jquery-1.7.1.js'|jquery}"></script>		
		<script type="text/javascript" src="{'bootstrap/bootstrap.js'|shared}"></script>		
		<script type="text/javascript" src="{'common.js'|shared}"></script>	
		<script type="text/javascript">
			window.UEDITOR_HOME_URL = "{'ueditor/'|shared}";
			window.IMG_LIST_URL = "{'?Ctlr=ImageLists'|shared}";
			window.IMG_BASE_URL = "{''|base}";
		</script>
		<script type="text/javascript" src="{'ueditor/editor_config.js'|shared}"></script>
		<script type="text/javascript" src="{'ueditor/editor_all.js'|shared}"></script>
		<script type="text/javascript" src="frag_form.js"></script>		
	</body>
</html>